package com.xkcoding.orm.mybatis.plus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * TODO
 *
 * @Author lingNan
 * @Date 2022/7/22 15:42
 **/
@Getter
@AllArgsConstructor
public enum GenderEnum implements IEnum {

    MAN(1, "男人"),
    WOMAN(0, "女人"),


    ;

    @EnumValue
    @JsonValue
    private final Integer value;

    private final String desc;
}
